<#macro tbTableBtn
	l=""
>
	<div class="hidden-sm hidden-xs btn-group">
		<#if l?contains("edit")>
			<@shiro.hasPermission name="${ctlKey}:edit">
		    <a class="btn btn-xs btn-info" href="${ctlKey}/edit/{0}"><i class="ace-icon fa fa-pencil bigger-120"></i></a>
		    </@shiro.hasPermission>
		</#if>
		<#if l?contains("delete")>
			<@shiro.hasPermission name="${ctlKey}:delete">
		    <a class="btn btn-xs btn-danger" onclick="delRow('{0}')"><i class="ace-icon fa fa-trash-o bigger-120"></i></a>
		    </@shiro.hasPermission>
		</#if>
	 </div>
	<div class="hidden-md hidden-lg">
		<div class="inline pos-rel">
			<button class="btn btn-minier btn-primary dropdown-toggle" data-toggle="dropdown" data-position="auto">
				<i class="ace-icon fa fa-cog icon-only bigger-110"></i>
			</button>
			<ul class="dropdown-menu dropdown-only-icon dropdown-yellow dropdown-menu-right dropdown-caret dropdown-close">
	            <#if l?contains("edit")>
		            <@shiro.hasPermission name="${ctlKey}:edit">
		            <li><a href="${ctlKey}/edit/{0}" class="tooltip-success" data-rel="tooltip" title="Edit"> <span class="green"> <i class="ace-icon fa fa-pencil-square-o bigger-120"></i></span></a></li>
		            </@shiro.hasPermission>
	            </#if>
		 		<#if l?contains("delete")>
		            <@shiro.hasPermission name="${ctlKey}:delete">
		            <li><a onclick="delRow('{0}')" class="tooltip-error" data-rel="tooltip" title="Delete"> <span class="red"> <i class="ace-icon fa fa-trash-o bigger-120"></i></span></a></li>
		            </@shiro.hasPermission>
	            </#if>
			</ul>
		</div>
	</div>
</div>
</#macro>